import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SGuildWarPlayerReward
    
    export  class SGuildWarPlayerReward extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SGuildWarPlayerReward();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.playerId);
            arg1.writeInt(this.rank);
            arg1.writeInt(this.rankInGuild);
            arg1.writeBool(this.isFail);
            arg1.writeInt(this.experience);
            arg1.writeInt(this.contribution);
            arg1.writeInt(this.guildMoney);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.playerId = arg1.readInt();
            this.rank = arg1.readInt();
            this.rankInGuild = arg1.readInt();
            this.isFail = arg1.readBool();
            this.experience = arg1.readInt();
            this.contribution = arg1.readInt();
            this.guildMoney = arg1.readInt();
            return;
        }

        public /* const */_type: int=154;

        public /* var */playerId: int;

        public /* var */rank: int;

        public /* var */rankInGuild: int;

        public /* var */isFail: Boolean;

        public /* var */experience: int;

        public /* var */contribution: int;

        public /* var */guildMoney: int;

        public static /* var */_regist: SGuildWarPlayerReward;
    }

            SGuildWarPlayerReward._regist = new SGuildWarPlayerReward(true);
        